import 'package:cbec_app/components/base/base_ctr.dart';
import 'package:cbec_app/utils/AppData.dart';
import 'package:cbec_app/utils/Tools.dart';
import 'package:get/get.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';

class UdeskWebViewController extends BaseController {
  late InAppWebViewController webController; // 修改为 InAppWebViewController
  var isLoading = true.obs; // 页面加载状态
  final urlString = AppData.isLogin ? 'https://bdego.udesk.cn/im_client/?web_plugin_id=83382&language=zh-cn&customer_token=${AppData.uid}&${Tools.signStr()}' : 'https://bdego.udesk.cn/im_client/?web_plugin_id=83382&language=zh-cn';

  @override
  void onInit() {
    super.onInit();
  }

  void pageLoaded() {
    isLoading.value = false; // 页面加载完成时调用
  }
}
